What is the purpose of interface in Apex?
Could you please clarify the purpose of the interface in Apex for me? I'm curious to understand how it contributes to the overall functionality and structure of the platform. Is it used to define a common set of methods or properties that must be implemented by classes that inherit from it? Or does it serve a different purpose in Apex? Your insights would be greatly appreciated.